package com.scalar.chiptrack.adaptor.osep;

/**
 * Created by IntelliJ IDEA.
 * User: Sudhakar
 * Date: Feb 21, 2007
 * Time: 2:20:28 PM
 */
public class OSEPFGWipStatus
{
    private String boxNo            = null;
    private String mfgArea          = null;
    private String assyLoc          = null;
    private String ship             = null;
    private String device           = null;
    private String lot              = null;
    private String split            = null;
    private String location         = null;
    private String actualQtyPulled  = null;
    private String remarks          = null;
    private String rec_date         = null;
    String lotNumber = null;

    public String getBoxNo() {
        return boxNo;
    }

    public void setBoxNo(String boxNo) {
        this.boxNo = boxNo;
    }

    public String getMfgArea() {
        return mfgArea;
    }

    public void setMfgArea(String mfgArea) {
        this.mfgArea = mfgArea;
    }

    public String getAssyLoc() {
        return assyLoc;
    }

    public void setAssyLoc(String assyLoc) {
        this.assyLoc = assyLoc;
    }

    public String getShip() {
        return ship;
    }

    public void setShip(String ship) {
        this.ship = ship;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getLot() {
        return lot;
    }

    public void setLot(String lot) {
        this.lot = lot;
    }

    public String getSplit() {
        return split;
    }

    public void setSplit(String split) {
        this.split = split;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getActualQtyPulled() {
        return actualQtyPulled;
    }

    public void setActualQtyPulled(String actualQtyPulled) {
        this.actualQtyPulled = actualQtyPulled;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRec_date() {
        return rec_date;
    }

    public void setRec_date(String rec_date) {
        this.rec_date = rec_date;
    }

    public String getLotNumber()
    {


       if( ( lot != null && lot.trim().length() > 0 && !"lot".equalsIgnoreCase(lot.trim() ) ) && ( split != null && split.trim().length() > 0 && !"split".equalsIgnoreCase(split.trim())))
       {
          lotNumber = lot + "-" + split;

       }
       else
       {
           lotNumber = lot;
       }

       return lotNumber;
    }

    public String toString()
    {
        StringBuffer buf = new StringBuffer();

        buf.append ("[ LotNo: ").append (lotNumber);
        buf.append ("[ Spilt: ").append (split);
        buf.append ("] [ PartNo: ").append (device);
        buf.append ("] [ fabLotNo: ").append (lot);
        buf.append ("] [ Quantity In: ").append (actualQtyPulled);
        buf.append ("] [ rec Date: ").append (rec_date).append (" ]");

        return buf.toString();
    }
}
